package com.xtedu.examproject.dao.base;

import com.xtedu.examproject.entity.Role;
import com.xtedu.examproject.entity.Teacher;

import java.util.List;

public interface RoleDao extends BaseDao<Role> {
    List<Role> findRolesByMenuId(int MenuId) throws Exception;
    int insert(Role role) throws Exception;
    int update(Role role) throws Exception;
    int delete(Role role) throws Exception;
    Role findById(int id) throws Exception;
    List<Role> findAll() throws Exception;

    //根据ID删除角色
    public boolean deleteRoleById(int id) throws  Exception;
    //根据ID更新教师信息
    public boolean updateRole(Role role) throws Exception;

    List<Role> findAllRoleInfo() throws Exception;
}
